package br.com.k19.managedbeans;

import br.com.k19.entidades.Cliente;
import br.com.k19.sessioneans.ClienteBean;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class ClienteMB {
	
	@EJB
	private ClienteBean clienteBean;
	
	private Cliente cliente = new Cliente();
        
	public void adiciona(){
		this.clienteBean.adiciona(cliente);
	}

	public Cliente getCliente() {
		return cliente;
	}

	public void setCliente(Cliente livro) {
		this.cliente = livro;
	}

}
